package com.cc8w.entity;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class UserPojo implements Serializable {
	private int id=0;//id
	private String userName = "";//用户名
	private String password="";//密码
	private String name="";//姓名
	private int sex=0;//性别
	private int no = 0;

	@DateTimeFormat(pattern="yyyy-MM-dd H:i:s")
	private Date create_time=null;
	
	
	public UserPojo() {
		
	}
	public UserPojo(int id, String name, int sex) {
		super();
		this.id = id;
		this.name = name;
		this.sex = sex;
	}
	
	
	
	public UserPojo(String name, int sex, int no, Date create_time) {
		super();
		this.name = name;
		this.sex = sex;
		this.setNo(no);
		this.create_time = create_time;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public Date getCreate_time() {
		return create_time;
	}

	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}

	public void setName(String name) {
		this.name = name;
	}
	public int getSex() {
		return sex;
	}
	public void setSex(int sex) {
		this.sex = sex;
	}
	public int getNo() {
		return no;
	}
	public void setNo(int no) {
		this.no = no;
	}

	@Override
	public String toString() {
		return "UserPojo{" +
				"id=" + id +
				", userName='" + userName + '\'' +
				", password='" + password + '\'' +
				", name='" + name + '\'' +
				", sex=" + sex +
				", no=" + no +
				", create_time=" + create_time +
				'}';
	}
}
